import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { TestComponent} from './test.component';
import { RouterModule, Routes} from '@angular/router';

const testRoutert: Routes = [
  { path: '', component: TestComponent, children: [
    { path: 'softtest', loadChildren: './softtest/softtest.module#SofttestModule'},
    { path: 'autotest', loadChildren: './autotest/autotest.module#AutotestModule'},
    {path: 'fieldtest', loadChildren: './fieldtest/fieldtest.module#FieldtestModule'},
  ]},
];
@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(testRoutert)
  ],
  declarations: [TestComponent]
})
export class TestModule { }
